package com.kamm.springbootflower.dao;


import com.kamm.springbootflower.domain.Flower;
import com.kamm.springbootflower.domain.FlowerTb;
import com.kamm.springbootflower.domain.Flowertype;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FlowerMapper {
    int deleteByPrimaryKey(Integer fId);

    int insert(Flower record);

    int insertSelective(Flower record);

    Flower selectByPrimaryKey(Integer fId);

    int updateByPrimaryKeySelective(Flower record);

    int updateByPrimaryKey(Flower record);

    int count(Flower flower);

    List<Flower> findAll(Flower flower);

    int deleteAll(String[] ids);

    int delete(String[] ids);

    int add2(List<FlowerTb> list);

    int deleteById(Integer id);

    int update(FlowerTb flowerTb);
    Flower findById(Integer id);

    List<Flower> getTb();

    int deleteTbId(@Param("fId") Integer fId,@Param("ftId") Integer ftId);

    int addType(FlowerTb flowerTb);

}